export default {
    "名称": "化怨清莲",
    "备注": "令目标当前回合受到伤害和造成伤害同时降低30%/50%/90%，持续2回合。",
    "灵宝算法": function (fight_data, src_unit, target_unit, lb, consummer) {
        let add_damage = 1;
        let remove_damage = 1;
        if (consummer === 1) {
            remove_damage = 0.3;
            add_damage = 1.7;
        } else if (consummer === 3) {
            remove_damage = 0.5;
            add_damage = 1.5;
        } else if (consummer === 7) {
            remove_damage = 0.9;
            add_damage = 1.9;
        }
        src_unit["化怨清莲"] = {};
        src_unit["化怨清莲"]["减伤"] = lb["境界"] * 0.01 + remove_damage;
        src_unit["化怨清莲"]["加伤"] = lb["境界"] * 0.01 + add_damage;
        G.FightComputingUtils.computing_skill(fight_data, src_unit, target_unit, lb["名称"]);
    },
}